const Router = require('koa-router')

const supplyController = require('../../controllers/supply')

const m = require('../../middlewares/admin_auth')


// 装载所有子路由
const router = new Router({
    prefix: '/admin/api/v1/supply'
})


// 个人信息
router.get('/getlist',  supplyController.getSupplyListInfo)

router.get('/add',  supplyController.addSupplier)

router.post('/addBuyRecord',  supplyController.addBuyRecord)


module.exports = router